package com.woniuxy.factory.mapper;

import com.woniuxy.factory.entity.Dep;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @NTLX data 2020 08 17
 */
public interface DepMapper {
    int countDep();

    Dep selectDepById(String depId);

    Dep selectDepByName(String depName);

    int insertDep(@Param("dep") Dep dep);

    List<Dep> selectAllDep();

    int sDeleteDep(String depId);

    int deleteDep(String depId);

    Dep queryDepByName(String depName);

    int selectNewDepNum();

    int updateDep(@Param("dep") Dep dep);
}
